package com.nine.shop.model;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
 * @Auther: wangcong
 * @Date: 2019/8/24 18:55
 * @Description:购物车表
 */
@Data
@NoArgsConstructor //无参构造器
@AllArgsConstructor//全参构造器
@TableName("db_shop_cart")
public class Cart {
    @TableId
    private Integer id;//id
    private Integer userId;//用户id
    private Integer goodsId;//商品id
    private Date createDate;//创建时间
    private Integer amount;//数量
    @TableField(exist = false)
    private Goods goods;//商品
}

